package cn.jinjimi.app.main.fragment;

import android.os.Bundle;

import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;

import cn.jinjimi.app.AccountManager;
import cn.jinjimi.app.webview.event.ReqLogoutEvent;

/**
 *
 * @author zhenhua
 * @date 2018/1/29
 */

public class MeFragment extends MainWebViewFragment {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Subscribe(threadMode = ThreadMode.MAIN)
    public void onReqLogout(ReqLogoutEvent event) {
        if (AccountManager.getInstance().isLogin()) {
            AccountManager.getInstance().logout();
        }
    }

}
